package com.foreknow.demo17;

public class Student {
    public String ename;
    public static int count;

    public Student() {
        System.out.println("构造方法被执行");
    }

    static {
        count = 1000;
        System.out.println("静态代码块被执行");
    }

    public static void main(String[] args) {
        Student s1 = new Student();
        System.out.println("-------------------------");
        Student s2 = new Student();
        Student s3 = new Student();
    }
}